package com.hundsun.cprs.yyt.service.classify.enums;

import java.util.HashMap;
import java.util.Map;

public enum ClassifyIsDeletedYOrNEnum {

	Y_CLASSIFY_TYPE("Y", "禁用  "),
    N_CLASSIFY_TYPE("N", "启用");
	
	//Y：禁用  N:启用
	private String code;
	
	//Y：禁用  N:启用
	private String Type;

	
	private ClassifyIsDeletedYOrNEnum(String code, String type) {
		this.code = code;
		Type = type;
	}

	
	public String getCode() {
		return code;
	}


	public void setCode(String code) {
		this.code = code;
	}


	public String getType() {
		return Type;
	}

	public void setType(String type) {
		Type = type;
	}
	
	 public static Map<String, String> toMap() {
	        Map<String, String> map = new HashMap<String, String>();
	        for (ClassifyIsDeletedYOrNEnum record : values()) {
	            map.put(record.getCode(), record.getType());
	        }
	        return map;
	    }
}
